import sys,time
print('Enter a task: ')
line=sys.stdin.readline()
for rate in range(100):
    text='Downloading %d%%'%rate
    sys.stdout.write(text)
    sys.stdout.write('\r')
    time.sleep(1)
sys.stderr.write('error\n')
